home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
dev
/
gg
/
ncurses-5.3.lha
/
ncurses-5.3
/
include
/
MKhashsize.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2002-10-24
|
358b
|
15 lines
#!/bin/sh
#
# MKhashsize.sh --- generate size include for hash functions
#
echo "/*"
echo " * hashsize.h -- hash and token table constants"
echo " */"
CAPS="${1-Caps}"
TABSIZE=`grep -v '^[ #]' $CAPS | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l`
echo ""
echo "#define CAPTABSIZE ${TABSIZE}"
echo "#define HASHTABSIZE (${TABSIZE} * 2)"